import request from '@/utils/request'

export async function getAllUsersPlatformResume(data) {
  return request({
    url: "/adminSever/platformResumeBg/get-system-platform-resumes",
    method: "POST",
    data
  })
}

export async function getAllUsersFileResume(data) {
  return request({
    url: "/adminSever/fileResumeBg/get-system-file-resumes",
    method: "POST",
    data
  })
}

export async function removeUserPlatformResumeInfo(id){
  return await new request({
    url: `/adminSever/platformResumeBg/remove-user-resumes/${id}`,
    method: "DELETE",
  })
}

export async function getUserResumeInfoByResumeId(id) {
  return await new request({
    url: `/adminSever/platformResumeBg/get-info/${id}`,
    method: "GET"
  })
}

export async function removeFilesByIds(data){
  return await new request({
    url: `/adminSever/fileResumeBg/remove-files`,
    method: "DELETE",
    data
  })
}

export async function getAllResumeAudit(data) {
  return request({
    url: "/adminSever/deliverBg/get-all",
    method: "POST",
    data
  })
}

export async function checkUserDeliverResume(id) {
  return request({
    url: `/adminSever/deliverBg/check-user-deliver/${id}`,
    method: "GET",
  })
}


export async function auditUserDeliverResume(data) {
  return request({
    url: "/adminSever/deliverBg/audit-data",
    method: "PUT",
    data
  })
}

export async function checkBatchUserDeliverResume(params) {
  return request({
    url: `/adminSever/deliverBg/check-user-deliver-batch?ids=${params}`,
    method: "GET",
  })
}

export async function getUserDeliverInfoById(id) {
  return await new request({
    url: `/adminSever/deliverBg/get-deliver/${id}`,
    method: 'GET',
  })
}




